/**
 * @file chixiao_os.h
 * @copyright Copyright (C) 2015-2018 Alibaba Group Holding Limited
 */

#ifndef CX_INIT_H
#define CX_INIT_H

#include <stddef.h>
#include <stdint.h>
#include "cx_common.h"
#include "cx_hal.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
 * init chixiao.
 *
 * @param[in]  cbs       chip callbacks.
 *
 * @return  0: success.
 */
int cx_init(cx_hal_cbs_t *cbs);

/**
 * deinit chixiao.
 *
 *
 * @return  0: success.
 */
int cx_deinit(void);

#ifdef __cplusplus
}
#endif

#endif /* CX_CHIPS_H */

